package com.dl.ycq.controller;

import com.dl.ycq.service.ChegnbenbiaoService;
import com.dl.ycq.service.StudentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StudentsController {

    @Autowired
    private StudentsService studentsService;

    @Autowired
    private ChegnbenbiaoService chegnbenbiaoService;

    @GetMapping("/getSName")
    public List<String> getSName(){
        return studentsService.getSName();
    }

    @GetMapping("/getName")
    public String getName(){
        return chegnbenbiaoService.getName();
    }

}
